//
//  CinemaCell.m
//  卢卡的时光网
//
//  Created by 卡神 on 15/7/23.
//  Copyright © 2015年 lok. All rights reserved.
//

#import "CinemaCell.h"

@implementation CinemaCell

- (void)setCinema:(Cinemas *)cinema {
    _cinema = cinema;
    [self setNeedsLayout];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)layoutSubviews {
    
    _grade.text = [NSString stringWithFormat:@"%.1lf", _cinema.grade];
    _address.text = _cinema.address;
    //_conpon.image = _cinema.isCouponSupport ? [UIImage imageNamed:@""] : nil;
    _name.text = _cinema.name;
    if ([_cinema.lowPrice isEqual:[NSNull null]]) {
        _price.text = @"10";
    } else {
      _price.text = _cinema.lowPrice;
    }
    [super layoutSubviews];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
